/**
 * Created by Administrator on 2017/3/9.
 */
var Tabs = require('../../../src/libs/tabs');
var TabItem = Tabs.TabItem;

function callback(key) {
    console.log(key);
}

var Root=React.createClass({
    render:function(){
        return (
            <div>
                <Tabs defaultActiveKey={0} onclick={callback}>
                    <TabItem tab="Tab 1">Content of Tab Pane 1</TabItem>
                    <TabItem tab="Tab 2">Content of Tab Pane 2</TabItem>
                    <TabItem tab="Tab 3" disabled={true}>Content of Tab Pane 3</TabItem>
                    <TabItem tab="Tab 4">Content of Tab Pane 4</TabItem>
                </Tabs>
            </div>
        );
    }
});

ReactDOM.render(<Root/>, document.getElementById("main"));